package edu.pku.hawk.cloud;

import java.util.ArrayList;
import java.util.List;

import edu.pku.hawk.controller.util.SerResourceList;

public class ResourceRequestHistory {
	private List<SerResourceList> resourceList;
	private static ResourceRequestHistory instance;
	private ResourceRequestHistory(){
		this.resourceList = new ArrayList<SerResourceList>();
	}
	
	public static ResourceRequestHistory getInstance(){
		if(instance == null){
			instance = new ResourceRequestHistory();
		}
		return instance;
	}
	
	public List<SerResourceList> getHistory(){
		return this.resourceList;
	}
	
	public void addResource(SerResourceList list){
		this.resourceList.add(list);
	}
}
